import request from '@utils/request'

// 获取列表
const getKefuList = async (data) => {
    return request({
        url: '/kefu/GetKefuList',
        method: 'get',
        data
    })
}

// 添加客服
const addKefu = async (data) => {
    return request({
        url: '/kefu/AddKefu',
        method: 'post',
        data
    })
}

// 编辑客服
const editKefu = async (data) => {
    return request({
        url: '/kefu/EditKefu',
        method: 'post',
        data
    })
}

// 删除客服
const deleteKefu = async (data) => {
    return request({
        url: '/kefu/DeleteKefu',
        method: 'get',
        data
    })
}

export {
    getKefuList,
    addKefu,
    editKefu,
    deleteKefu
}
